/**
 * 
 */
package t4j.arrays;

import java.util.Arrays;
import java.util.Collections;

import t4j.net.mindview.util.Generated;

/**
 * @author sz
 *
 * create time：2013-2-22
 */
public class Reverse {
	public static void main(String[] args) {
		CompType[] a =  Generated.array(new CompType[12], CompType.generator());
		
		System.out.println("before sorting:");
		
		System.out.println(Arrays.toString(a));
		
		Arrays.sort(a,Collections.reverseOrder());
		
		System.out.println("after sorting:");
		
		System.out.println(Arrays.toString(a));
	}
}
